﻿Imports System.Xml.Serialization

<System.Serializable()> <XmlRoot("cms_pictop")> Public Class cms_pictop
    <XmlAttribute("rows")> Public rows As Integer
    <XmlAttribute("module")> Public smodule As String = "default"
    <XmlAttribute("id")> Public id As Integer = 0
    <XmlAttribute("channelid")> Public channelid As Integer
    <XmlAttribute("param")> Public param As String = String.Empty
    <XmlText()> Public channel As String
End Class

<System.Serializable()> <XmlRoot("cms_top")> Public Class cms_top
    <XmlAttribute("rows")> Public rows As Integer
    <XmlAttribute("module")> Public smodule As String = "default"
    <XmlAttribute("id")> Public id As Integer = 0
    <XmlAttribute("channelid")> Public channelid As Integer
    <XmlAttribute("param")> Public param As String = String.Empty
    <XmlText()> Public channel As String
End Class

<System.Serializable()> <XmlRoot("cms_article")> Public Class cms_article
    <XmlAttribute("rows")> Public rows As Integer
    <XmlAttribute("type")> Public type As String
    <XmlAttribute("module")> Public smodule As String = "default"
    <XmlAttribute("id")> Public id As Integer = 0
    <XmlAttribute("preview")> Public preview As Boolean = False
    <XmlAttribute("param")> Public param As String = String.Empty
    <XmlText()> Public channel As String
End Class

<System.Serializable()> <XmlRoot("cms_field")> Public Class cms_field
    <XmlText()> Public name As String
End Class

<System.Serializable()> <XmlRoot("cms_html")> Public Class cms_html
    <XmlAttribute("channel")> Public channel As Integer
    <XmlAttribute("id")> Public id As Integer = 0
    <XmlText()> Public title As String
End Class

<System.Serializable()> <XmlRoot("cms_channel")> Public Class cms_channel
    <XmlAttribute("pagesize")> Public pagesize As Integer = 20
    <XmlAttribute("id")> Public id As Integer = -1
    <XmlAttribute("curpage")> Public curpage As Integer = 1
    <XmlAttribute("orderby")> Public orderby As String = "f_addtime desc"
    <XmlAttribute("module")> Public smodule As String = "default"
    <XmlText()> Public name As String
End Class
